package model;

import java.io.Serializable;
import java.sql.Date;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.ArrayList;

//-- Hnin phyho--
public class AppliedDataDTO  implements Serializable  
{
  String userid;  
  String name;
  String role;
  String status;
  String appliedDate;
  double overTime;
  
  
public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getAppliedDate() {
		return appliedDate;
	}
	public void setAppliedDate(Date appledDate) {
		this.appliedDate = convertString(appledDate);
	}
	public double getOverTime() {
		return overTime;
	}
	public void setOverTime(double overtime) {
		this.overTime = overtime;
	}
	
	public String convertString(Date d) 
	{		
        Date dateNow = d;      
        SimpleDateFormat dateformatMMDDYYYY = new SimpleDateFormat("dd-MM-yyyy");
       
        StringBuilder nowMMDDYYYY = new StringBuilder( dateformatMMDDYYYY.format( dateNow ) );
 
        return nowMMDDYYYY.toString();
 
    }
	
	
}


